package homework.work8;

public class Main {
    public static void main(String[] args) {
        Season season = Season.valueOf("SUMMER");
        judgeSeason(season);
    }

    private static void judgeSeason(Season season) {
        switch (season){
            case AUTUMN -> System.out.println("season = " + "春天");
            case SUMMER -> System.out.println("season = " + "夏天");
            case SPRING -> System.out.println("season = " + "秋天");
            case WINTER -> System.out.println("season = " + "冬天");
        }
    }
}
